{{ define "admin/manager/add.html" }}
{{ template "admin/common/page_header.html" .}}


<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <header class="card-header">
                增加管理员
            </header>
            <div class="card-body">
                <form action="/admin/manager/doAdd" method="post">
                    <div class="form-group col-md-12">
                        <label for="username">管理员名称</label>
                        <input type="text" class="form-control" id="username" name="username" autocomplete="off"  placeholder="管理员名称">
                    </div>
                    <div class="form-group col-md-12">
                        <label for="password">管理员密码</label>
                        <input type="password" class="form-control" id="password" name="password"  placeholder="管理员密码">
                    </div>
                    <div class="form-group col-md-12">
                        <label for="mobile">管理员电话</label>
                        <input type="text" class="form-control" id="mobile" name="mobile" autocomplete="off" placeholder="管理员电话">
                    </div>
                    <div class="form-group col-md-12">
                        <label for="email">管理员邮箱</label>
                        <input type="text" class="form-control" id="email" name="email" autocomplete="off" placeholder="管理员邮箱">
                    </div>
                    <div class="form-group col-md-12">
                        <label for="type">管理员角色</label>
                        <select name="role_id" id="role_id" class="form-control">
                            {{range $key,$value := .roleList}}
                                <option value="{{$value.Id}}">{{$value.Title}}</option>
                            {{end}}
                        </select>
                    </div>
                    <div class="form-group col-md-12">
                        <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
                        <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

{{end}}